package com.atguigu.yygh.order.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.vo.order.OrderCountQueryVo;
import com.atguigu.yygh.vo.order.OrderQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * @author ybl
 * @version 1.9
 * @date 2021/5/23 20:02
 */
public interface OrderService extends IService<OrderInfo> {

  // 创建订单
  Long saveOrder(String scheduleId, Long patientId);

  //订单列表（条件查询带分页下`）
  IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

  //根据订单id查询订单详情
  OrderInfo getOrder(String orderId);

  // 订单详情
  Map<String,Object> show(Long id);

  /**
   * 取消订单
   * @param orderId
   */
  Boolean cancelOrder(Long orderId);

  /**
   * 就诊提醒
   */
  void patientTips();

  /**
   * 订单统计
   */
  Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);

}
